package model

import "gorm.io/gorm"

type Chat struct {
	gorm.Model
	SenderId   int    `gorm:"type:int" json:"senderId"`         //用户Id
	ReceiverId int    `gorm:"type:int" json:"receiverId"`       //好友Id
	Content    string `gorm:"type:varchar(100)" json:"content"` //文本内容
	Status     int    `gorm:"type:int" json:"status"`           //消息状态 0 为已发送 1 为已送达 2 为已读
}
